<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<f:view>
	<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

	<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<title>Untitled Document</title>
	<link href="css/style.css" media="all" type="text/css" rel="stylesheet" />
	<script type="text/javascript" src="js/index.js"></script>
	<script type="text/javascript" src="js/jquery-1.3.2.js"></script>
	</head>

	<body onload="javascript: iniciaComet2();">


	<div id="centralizer">

	<div id="home" class="content">
	<div class="question_box"><h:outputText value="#{param['Error']}"
		rendered="#{param['Error'] != null}" /> <h:form>
		<h:inputHidden value="#{userBean.lastlogon}" />
		<h3>Login</h3>
		<div class="dashed_separator"></div>
		<label>E-mail:</label>
		<h:inputText styleClass="input_text" value="#{userBean.username}" />
		<div class="cleaner separator"></div>
		<label>Senha:</label>
		<h:inputSecret styleClass="input_text" value="#{userBean.password}" />
		<div class="cleaner dashed_separator"></div>
		<div class="action_buttons"><h:commandButton
			action="#{userBean.login}" value="Login" /></div>
	</h:form></div>

	<div class="separator"></div>

	<div class="category_box">
	<h3>Categorias</h3>
	<div class="dashed_separator"></div>
	<!--<ul>
        	
        	
        		<li>
        			<a href="/sistemaperguntaresposta/controller?business=PerguntaController&action=search&search=">
					Todos
					</a>
				</li>
            </ul>
        --></div>

	<div class="search_box">
	<h:form>
	<h3>Buscar uma Pergunta</h3>
	<div class="dashed_separator"></div>
	<h:inputText value="#{perguntaBean.titulo}" />
	<h:commandButton action="#{perguntaBean.busca}"/>
	</h:form>
	</div>

	<div class="question_list_box">
	<h3>Perguntas Recentes</h3>
	<div class="dashed_separator"></div>
	<ul id="perguntas">


	</ul>
	</div>

	<div class="cleaner"></div>
	</div>

	<div class="footer"></div>
	</div>

	</body>
	</html>

</f:view>
